/*
 * @Author: Clark
 * @Email: haixuanwoTxh@gmail.com
 * @Date: 2023-08-13 20:47:58
 * @LastEditors: Clark
 * @LastEditTime: 2023-08-13 20:55:59
 * @Description: file content
 */

#include "s3c2440_soc.h"
#include "uart.h"
#include  "my_printf.h"

int main(void)
{
    unsigned char c;

    uart0_init();
    puts("Hello, world!\n\r");
    my_printf_test();

    while (1)
    {
        c = getchar();
        if ('\r' == c)
        {
            putchar('\n');
        }

        if ('\n' == c)
        {
            putchar('\r');
        }

        putchar(c);
    }

    return 0;
}
